/*
 Problem Description
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".
 

Input
each test case contains two numbers A and B.

 

Output
for each case, if A is equal to B, you should print "YES", or print "NO".
 

Sample Input
1 2
2 2
3 3
4 3
 

Sample Output
NO
YES
YES
NO

 */
package com.yuan.algorithms.acm201504;

import java.math.BigDecimal;
import java.util.Scanner;

public class HD2054判断两数是否相等 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			String a = sc.next();
			String b = sc.next();
			BigDecimal a1 = new BigDecimal(a);
			BigDecimal b1 = new BigDecimal(b);
			if (a1.compareTo(b1)==0) {
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}

	}

}
